package org.desktop.web.shared.domain.entities;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.google.gwt.user.client.rpc.IsSerializable;

@JsonAutoDetect(fieldVisibility = Visibility.ANY)
@JsonInclude(Include.NON_NULL)
public class Email implements Serializable, IsSerializable {

	/**
	 * Lasciare a null quando viene passato alla controparte server o altrimenti
	 * si rischia il loop
	 */
	private User idUsers;

	private String email;

	public User getIdUsers() {
		return idUsers;
	}

	public void setIdUsers(User idUsers) {
		this.idUsers = idUsers;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	private Integer idEmail;

	public Integer getIdEmail() {
		return this.idEmail;
	}

	public void setIdEmail(Integer id) {
		this.idEmail = id;
	}
}
